package cn.signalpha.modules.shop.mapper;

import cn.signalpha.modules.shop.entity.OrderSettle;
import cn.signalpha.modules.shop.vo.OrderSettleVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单结算 Mapper 接口
 *
 * @author suguangjun
 */
public interface OrderSettleMapper extends BaseMapper<OrderSettle> {

	/**
	 * 自定义分页
	 */
	List<OrderSettleVO> selectOrderSettlePage(IPage page, @Param("params") Map<String, Object> params);

	/**
	 * 自定义统计
	 */
	Double selectOrderSettleTotal(@Param("params") Map<String, Object> params);

	/**
	 * 支付成功
	 */
	int updateByPaySuccess(@Param("payNo") String payNo, @Param("bizPayNo") String bizPayNo, @Param("payType") String payType);
}
